﻿@model PMS.UserInfo
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_IndexLayout.cshtml";
}
<script src="~/Content/scripts/Common/index.js"></script>
<link href="~/Content/css/main.css" rel="stylesheet" />
@*<script src="~/Content/scripts/dialog.js"></script>*@
<link href="~/Content/css/Dialog.css" rel="stylesheet" />

<style type="text/css">
    /*布局开始*/
    .layout-split-west {
        border-right: 0;
        box-shadow: 0 0 1px #b3b3b3;
    }
    /*布局结束*/
    .tabs-header-narrow, .tabs-header-narrow .tabs-narroww {
        background-color: #efefef;
        box-shadow: 0 0 1px #b3b3b3;
    }
    /*选显卡头部文字、图标、关闭按钮*/
    .tabs-header .tabs li.tabs-selected a {
        color: #002766;
        font-weight: normal;
    }

    .tree-title {
        font-size: 14px;
    }

    .tabs li a.tabs-inner {
        background-color: #efefef;
    }
    /*关闭按钮*/
    .tabs-closable {
        padding-right: 32px !important;
    }

    .tabs li a.tabs-close,
    .tabs-p-tool a {
        display: inline-block;
        font: normal normal normal 13px/1 FontAwesome;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        background: none;
        height: 18px;
        line-height: 16px;
        width: 18px;
        text-align: center;
        text-decoration: none;
        border-radius: 2px;
        color: #777777;
    }

    .tabs li a.tabs-close {
        margin-top: -9px;
    }

    .tabs-close:before {
        font-weight: lighter;
        font-size: 1.2em;
        content: "\f00d";
    }

    .tabs li a.tabs-close:hover,
    .tabs li.tabs-selected a.tabs-close:hover {
        background-color: #fa541c;
        color: #fff;
    }

    .tabs-p-tool {
        right: 23px;
        height: 18px;
        margin-top: -8px;
    }
</style>
<script type="text/javascript">
    $(function () {
        com.ajax({
            url: '/User/getSchoolIDQuery',
            data: {},
            success: function (data) {
                $('#school').combotree('setValue', data.msg);
            }
        });
        $('#school').combotree({
            url: '/SchoolInfo/GetOwnSchoolInfoTree',
            onSelect: function (record) {
                var schoolid = record.id;
                com.ajax({
                    url: '/User/ChangeSchool',
                    data: { "schoolid": schoolid },
                    success: function (data) {

                    }
                });
            }
        });
    });
</script>
<div id="layout" class="easyui-layout" data-options="fit:true,border:false">
    <div class="mes-header" data-options="region:'north',split:false" style="overflow:hidden">
        <div class="mes-header-nav">
            <a id="btn_menu" href="#" class="easyui-linkbutton" data-options="plain:true" style="width: 36px;margin: 0 4px">
                <i class="fa fa-navicon"></i>
            </a>
        </div>

        <span class="mes-header-brand">数据采集信息管理系统</span>
        @*<img src="../images/logo11.jpg" alt="" style="width:45px;height:45px">*@
        <div class="mes-header-nav mes-right">
            @{
                PMS.UserInfo basic = PMS.OperateContext.sessUserInfo;
            }
            @if (basic.IfHeadquarters == "1")//总部显示下拉框并可切换
            {
                @:公司切换：<input id="school" name="school" />
            }
            <a href="#" class="easyui-menubutton" data-options="menu:'#user_menu'">
                <span id="SchoolName">@Model.SchoolName</span>-<span id="department">@Model.DepName</span>：<span id="username">@Model.Name</span>
            </a>
            <div id="user_menu">
                <div id="setName" class="setname">设置登录名</div>
                <div id="changePwd" class="changepwd">修改密码</div>
                <div id="logout" class="loginOut">退出系统</div>
            </div>
        </div>
    </div>
    <div id="west" data-options="region:'west',border:false,collapsible:false,split:true"
         style="width:230px;border-bottom-width: 1px;padding-top: 10px;background-color: #eee;">
        <ul id="menuTree" class="easyui-tree" data-options="animate:true"></ul>
    </div>
    <div id="center" data-options="region:'center',border:false" style="background-color:white;height:100%">
        @*<div id="tab_container" class="easyui-tabs" style="float: left; overflow: visible" data-options="fit:true,border:false">
                <div data-options="title:'我的桌面',content:wrapper.settings.iframe" style="overflow: visible">
                </div>
            </div>*@
        @*<div id="tabs" class="easyui-tabs" data-options="fit:true,plain:true,narrow:true" style="background-color:white">*@
        <div id="tabs" class="easyui-tabs" style="float: left; overflow: visible;height:100%;" data-options="fit:true,border:false">
            <div title="我的桌面" data-options="iconCls:'fa fa-home fa-16px',content:wrapper.settings.iframe">

            </div>
        </div>


    </div>
    <div data-options="region:'south',border:'false',split:false" style="width: 20px;">
        <div style="float: left; margin-left: 20px">当前登录用户:<b>@Model.Name</b></div>
        <div style="float: right; margin-right: 40px">
            开发技术支持--<span>武汉理工大学</span>&nbsp;&nbsp;<span id="nowDate"></span>
        </div>
    </div>
</div>
<div id="divChangePwd">
</div>

<div id="divMsg">

    <div style="height: 98%; width: 6px; float: left; border: solid; background-color: #EEEEEE; color: #EEEEEE"></div>


    <div id="divMsgRight" style="height: 98%; width: 405px; float: right; display: none">
        <div style="margin-left: 3px; text-align: center">
            <h2 id="msgH2"></h2>
        </div>
        <div style="margin-left: 3px"><font color="#999999"> 发件人:<span id="spnMsgFromName"></span></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#999999"> 时  间:<span id="spnMsgTime"></span></font></div>
        <div style="margin-top: 10px; margin-left: 3px; display: none" id="divMsgUrl"><font color="#999999"> 相关页面:&nbsp;&nbsp;<a id="aMsgUrl" href="#" style="cursor:pointer">点击查看</a></font></div>

        <div style="margin-top: 14px; margin-left: 3px" id="divMsgContent">您好，欢迎您进入本系统！！！</div>
    </div>
</div>
<div>

    <input type="hidden" id="hidAction" />
    <input type="hidden" id="hidId" />
    <input type="hidden" id="hidNum" />
    <input type="hidden" id="hidPcPlanNum" />
    <input type="hidden" id="hidPcPlanAidNum" />
    <input type="hidden" id="SchoolCode" />
</div>